package com.xuxin.nantai.contract;

import com.xuxin.nantai.bean.BaseBean;
import com.xuxin.nantai.bean.ColorBean;
import com.xuxin.nantai.bean.HangUpdateLoginBean;
import com.xuxin.nantai.bean.ProductInfoBean;
import com.xuxin.nantai.presenter.ChaiUpdatePresenter;

/**
 * Created by xu_xin
 * Created on 2020.06.19 0019
 */
public interface ChaiUpdateContract {

    interface Model {

        void getAllProductInfo(ChaiUpdatePresenter presenter, String InsType);

        void getColor(ChaiUpdatePresenter presenter, String cInvName);

        void update(ChaiUpdatePresenter presenter,
                    String LoginName,
                    String UserName,
                    String Guid,
                    String ID,
                    String cInvName,
                    String myColor,
                    String PackQty,
                    String InspectorName,
                    String InspectorCode,
                    String InspectTime,
                    String FacArea,
                    String DefectNum,
                    String DefectDes,
                    String Remark);
    }

    interface View extends BaseContract.view {

        void onSuccess(ProductInfoBean productInfoBean);

        void onSuccess(ColorBean colorBean);

        void onSuccess(BaseBean baseBean);
    }

    interface Presenter extends BaseContract.presenter {

        void getAllProductInfo(String InsType);

        void getColor(String cInvName);

        void update(String LoginName,
                    String UserName,
                    String Guid,
                    String ID,
                    String cInvName,
                    String myColor,
                    String PackQty,
                    String InspectorName,
                    String InspectorCode,
                    String InspectTime,
                    String FacArea,
                    String DefectNum,
                    String DefectDes,
                    String Remark);

        void onSuccess(ProductInfoBean productInfoBean);

        void onSuccess(ColorBean colorBean);

        void onSuccess(BaseBean baseBean);
    }
}